<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	request.setAttribute("basePath", basePath);
%>
<!DOCTYPE html>
<html>
<head>
<base href="${basePath}">
<meta charset="UTF-8">
<title>图书馆管理系统</title>
<style type="text/css">
html,body{
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	font-family: 微软雅黑;
	font-size: 20px;
	
}

.backgroundDiv { position: fixed; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background-image: url("picture/bg_step01.png");}
.backgroundDiv img { width: 100%; height: 100%;}

.contentDiv .userDiv{
 	margin-top : 200px;
	margin-left: 450px;
	text-align:left;
	padding: 0; 
}
.userDiv label{
	display: inline-block;
	width: 100px;	
	padding: 5px 0;
	text-align: right;

}
.userDiv input{
	width: 200px;
	hight: 50px;
}
#login1, #login2, #register{
	margin-top: 20px;
	margin-left: 20px;
	width: 100px;
}
.userDiv{
	background-color: rgba(255, 255, 255, 0.3);
	background-image:url();
	width: 400px;
	height:200px;
	margin-top : 100px;
	border-style:solid;
	border-color: black;
	
}
.userDiv form{
	margin-top : 20px;
}
</style>
</head>
<body>
	<div class="backgroundDiv">
</div>
<div class="contentDiv">
	<div class="titleDiv">
		<h1>图书馆管理系统</h1>
	</div>
	
	<div class="userDiv">
<!--  <%=request.getAttribute("msg")%>-->
<!--	<h1><s:property value="msg"/></h1>-->
	<font color = "red">${msg}</font>
	<form class="form1" action="user/User_login" method="post"> 
		<label for="a">用户名：</label>
		<input id="a" name="user.userName" required="required"><br>
		<label for="b">密&nbsp&nbsp 码：</label>
		<input id="b" name="user.passWord" type="password" required="required"><br>
		<input id="login1" type="submit" value="登陆" />
		<input id="login2" type="reset" value="重置" />
		<input id="register" type="button" value="注册" onclick="javascript:window.location.href='register.jsp'"/>
	</form>
	
	</div>
</div>
	<!-- 
		1. 更改文件编码。参见博客
		2. 设计实现注册。
	 -->
</body>
</html>